#include "CServerNetworkObj.h"
#include "../../raknet/source/AutoRPC.h"
#include "../../raknet/source/NetworkIDManager.h"

bool CServerNetworkObj::Init(unsigned short unSysAdress)
{
	bool bRet = false;

	m_NetIDMan.SetIsNetworkIDAuthority(true);
	m_RPC.SetNetworkIDManager(&m_NetIDMan);
	
	m_NetID.localSystemAddress=unSysAdress;	

	this->SetNetworkIDManager(&m_NetIDMan);
	this->SetNetworkID(m_NetID);
	this->GetNetworkIDManager();
	bRet = true;

	return bRet;
}

int CServerNetworkObj::RouteChatMessage(const char *str, RakNet::AutoRPC *networkCaller)
{
	//ToDo: DO SUMSINK!
	return 0;
}